package domain;

import java.util.Collection;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;


@Entity
@Access(AccessType.PROPERTY)
public class Administrator extends Actor{
	
	// Relationships ----------------------------------------------------------
	
	private Collection<Event> event;

	@NotNull  
	@Valid
	@OneToMany(mappedBy="administrator")
	public Collection<Event> getEvent() {
		return event;
	}

	public void setEvent(Collection<Event> event) {
		this.event = event;
	}



}
